package com.yilin.tms.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.entity.user.organize.Organize;
import com.yilin.tms.core.entity.user.organize.UserRole;

import java.util.List;

public interface IRoleService extends IService<UserRole> {

    UserRole initManagerRole(Organize organize);

    UserRole getManagerRoleByOrganizeId(String organizeId);

    List<UserRole> getRoleListByOrganizeId(String organizeId,UserRole query);

    UserRole getEmployeeRoleByName(String organizeId, String name);

    List<UserRole> getUserRoleListByOrganizeId(String organizeId);

    UserRole getUserRoleById(String organizeId, String roleId);

}
